<template>
	<view class="container">
		<view class="notification" v-for="(notification, index) in notifications" :key="index">
			<view class="notification-header">
				<text class="title">{{ notification.title }}</text>
				<text class="date">{{ notification.date }}</text>
			</view>
			<text class="message">{{ notification.message }}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				notifications: [{
						title: "支付成功通知",
						date: "2022.1.1 11:09",
						message: "您已成功支付32元"
					},
					{
						title: "支付成功通知",
						date: "2022.1.1 11:09",
						message: "您已成功支付32元"
					},
					{
						title: "支付成功通知",
						date: "2022.1.1 11:09",
						message: "您已成功支付32元"
					}
				]
			};
		}
	};
</script>

<style>
	.container {
		padding: 20px;
		background-color: #f5f5f5;
	}

	.notification {
		background-color: #fff;
		padding: 20px;
		margin-bottom: 15px;
		border-radius: 10px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		transition: box-shadow 0.3s ease;
	}

	.notification:hover {
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
	}

	.notification-header {
		display: flex;
		justify-content: space-between;
		margin-bottom: 10px;
	}

	.title {
		font-size: 18px;
		font-weight: bold;
		color: #333;
	}

	.date {
		font-size: 14px;
		color: #999;
	}

	.message {
		font-size: 16px;
		color: #555;
		line-height: 1.5;
	}
</style>